Extending the Java Language with Dynamic Classification

نویسنده

  • Liwu Li
چکیده

The dynamic classification feature of an object-oriented programming language allows an object to change its class membership without changing its identity at runtime. The new membership of the object can be signified with a role, which is taken on by the object and which can be implemented as an object of the target class. Here, we propose an approach to extend the Java language with a dynamic classification mechanism, which can be implemented by extending the Java language, compiler, and standard library. We present a prototypical implementation of the mechanism to show the feasibility of the approach to dynamic classification.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Java Embedded Real-Time Systems: An Overview of Existing Solutions

Java is a programming language with features not found in traditional languages such as platform independence and dynamic loading. Because of this, Java is extending and beginning to be used in many new environments. In particular, the advantages that Java provides make it a good candidate for distributed, real-time and embedded systems. However, Java presents some problems regarding its use in...

متن کامل

Safe Cross-Language Inheritance

Inheritance is a standard means for reuse and for interfacing with external libraries. In a multi-language software product, extending a class written in a statically-typed language with a dynamicallytyped class can require a significant number of manual indirections and other error-prone complications. Building on our previous interoperability work, we introduce a technique that allows safe, e...

متن کامل

A Safe Implementation of Dynamic Overloading in Java-Like Languages

We present a general technique for extending Java-like languages with dynamic overloading, where method selection depends on the dynamic type of the parameter, instead of just the receiver. To this aim we use a core Java-language enriched with encapsulated multi-methods and dynamic overloading. Then we define an algorithm which translates programs to standard Java code using only basic mechanis...

متن کامل

Extending eclipse RCP with dynamic update of active plug-ins

While the dynamic linking mechanism of modern programming languages, such as Java, allows loading of classes dynamically, it does not allow class reloading. Hence, dynamic linking facilitates development of component platforms, such as eclipse RCP, which supports dynamic loading but not dynamic updates of components, since this requires reloading. This paper presents an approach that enhances e...

متن کامل

Exploiting Reflection to Add Persistence and Query Optimization to a Statically Typed Object-Oriented Language

It is popular and appealing to design and construct a persistent programming language by extending the semantics of a non-persistent language appropriately and then modifying its compiler and run-time system to implement the extended semantics. We describe here how to achieve this, and furthermore, how to support query optimization, which is typically neglected in persistent programming languag...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Journal of Object Technology

دوره 3  شماره 

صفحات  -

تاریخ انتشار 2004